<?php

class Admin_IndexController extends Zend_Controller_Action
{

    public function init()
    {
        $this->_helper->layout->setLayout('admin/login');
    }

    public function indexAction()
    {

    }

    public function helloWorldAction()
    {
        $this->_helper->json(array('data' => 123));
    }

    public function locationAction()
    {

        $this->_request->isPost();
        $this->_request->getParam('act', '123');
        $this->_request->getParams();
        $this->_request->getPost();

        $this->_getParam($paramName);
        $this->_getAllParams();

        if ($this->request['act']) {
            $location = new Zendvn_Model_Nested();
            $location->_name = 'location';
            $location->insertNode(array('Name' => 'Viet Nam', 'Type' => 1));


        } else {
            $this->_redirect('admin/index/location/act/list');
        }
    }

    public function salecategoryAction()
    {

    }

    public function realcategoryAction()
    {

    }

    public function customerAction()
    {

    }

    public function realAction()
    {

    }

}